<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<link href="https://cdn.bootcss.com/mui/3.7.1/css/mui.min.css" rel="stylesheet">
		<script src="https://cdn.bootcss.com/mui/3.7.1/js/mui.min.js"></script>
		
		
	</head>

	<style type="text/css">

	</style>
	<body>

		<header class="mui-bar mui-bar-nav">
			<h1 class="mui-title">本地html测试</h1>
		</header>

		<div class="mui-content">
			<div class="mui-input-row mui-search">
				<input type="search" class="mui-input-clear" placeholder="请输入">
			</div>







		</div>


		<script type="text/javascript">
			mui.init();
			
			mui(".mui-input-row input")[0].addEventListener("keydown", function(e) {
				if (13 == e.keyCode) { //点击了“搜索”  
					document.activeElement.blur(); //隐藏软键盘
					console.log(this.value);
					alert(this.value);
					
				}
			}, false);
			
		</script>

	</body>
</html>
